<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鼠标悬停动效示例</title>
    <link rel="stylesheet" href="作业链接.css" />

    <style>
        body {
            font-family: Arial, sans-serif;
        }

        .container {
            width: 80%;
            margin: 0 auto;
            text-align: center;
        }

        .product {
            display: inline-block;
            width: 400px;
            margin: 20px;
            border: 2px solid #000;
            padding: 30px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .product img {
            width: 100%;
            height: auto;
        }

        .product a {
            display: block;
            margin-top: 10px;
            text-decoration: none;
            color: #000;
        }

        .product:hover {
            transform: translateY(-20px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="product">
            <img src="./p1.png" alt="Product 1">
            <a href="./动感立方体/立方体.html">动感立方体</a>
        </div>
        <div class="product">
            <img src="./p2.png" alt="Product 2">
            <a href="./浮动及定位/浮动及定位5.html">浮动及定位</a>
        </div>
        <div class="product">
            <img src="./p3.png" alt="Product 3">
            <a href="./图标字体与购物车/图标字体与购物车.html">图标字体与购物车</a>
        </div>
        <div class="product">
            <img src="./p41.png" alt="Product 4">
            <a href="./菜单栏/导航菜单栏01.html">个人设计导航菜单（可跳转）</a>
        </div>
        <p>可点击图片下的文字进行网页跳转</p>
    </div>
</body>

</html>